package com.liveinstars.im.domain.manager;

import com.liveinstars.api.im.query.UserOnlineServerQuery;
import com.liveinstars.im.domain.dao.model.UserOnlineServer;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户关联server表 服务类
 * </p>
 *
 * @author 8btc
 * @since 2020-03-31
 */
public interface UserOnlineServerManager extends IService<UserOnlineServer> {

    /**
     * 根据query查询数量
     * @param query
     * @return
     */
    int countByQuery(UserOnlineServerQuery query);

    /**
     * 添加用户在线服务器信息
     * @param userOnlineServer
     */
    void add(UserOnlineServer userOnlineServer);
}
